import http from "@/utils/http"

// 获取一级分类
export const getCategoryAPI = (id) => http.get('/category',{
  params: { id }
})

// 获取二级分类
export const getCategoryFilterAPI = (id) => http.get('/category/sub/filter', {
  params: { id }
})

export const getSubCategoryAPI = (data) => http.post('/category/goods/temporary', data)
